﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eCompany.Extented_Controls
{
    public partial class PanelExtended : Panel
    {
        public PanelExtended()
        {
            InitializeComponent();
            this.DoubleBuffered = true;
        }

        public PanelExtended(IContainer container)
        {
            container.Add(this);
            InitializeComponent();
            this.DoubleBuffered = true;
        }

        protected override CreateParams CreateParams
        {
            get
            {
                System.Windows.Forms.CreateParams cp = base.CreateParams;
                cp.ExStyle = cp.ExStyle | 0x2000000;
                return cp;
            }
        }
    }
}
